{%include file="m.index.header.tpl.php"%}
<!--头部 end--> 
<!--主体部分-->
<form name="myform" action="" method="get">	
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=notice.presidentadd" >发布通知</a></div>
  </div>
  <div class="row" style="margin-top:10px;">
   
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">标题:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" name="notice_title" value="{%$notice_title%}">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy" >
        <div class="form-group hierarchy" >
          <label for="" class="col-sm-2 control-label">发布部门:</label>
          <div class="col-sm-10">
            <select class="form-control" name="department_id" style="padding:0;">
			<option value="">全部</option>
			{%foreach from=$department_lists key=key item=value%}
					<option value="{%$value.department_id%}"{%if $value.department_id == $department_id%}selected{%/if%}>{%$value.department_name%}</option>
						
			{%/foreach%}
			</select> 
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">开始时间:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$from%}" id="from" name="from">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy2">
        <div class="form-group">
          <label for="" class="col-sm-2 control-label">结束时间:</label>
          <div class="col-sm-10">
		   
            <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
          </div>
        </div>
      </div>
      <div class="col-xs-12 distance" >
      <div class="form-group  text-center" style="padding-top:0px;">
	   <input type="hidden" name="a" value="notice.presidentlist">
      <button type="submit" class="btn btn-success absolutely ">
      搜索
      </button>
      </div>
      </div>
    </form>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  {%foreach from=$notice_lists key=key item=value%}
    <table class="table table-striped table-bordered "  id="middles">
      <tr>
        <td>标题</td>
        <td>{%$value.notice_title%}</td>
      </tr>
      <tr>
        <td>发布部门</td>
        <td>{%$value.department_name%}</td>
      </tr>
      <tr>
        <td>发布时间</td>
        <td>{%$value.start_time%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td ><a type="button" class="btn btn-warning  " href="index.php?a=notice.presidentdetails&notice_type=tongzhi&notice_id={%$value.notice_id%}" >查看</a>
      </tr>
    </table>
	{%/foreach%}   
  </div>
</div>
<!--container  end--> 

<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end--> 
 <script>
 $(function() {
 	$( "#from" ).datepicker({
 		defaultDate: "+1w",
 		changeMonth: true,
 		changeYear: true,
 		numberOfMonths:1,
 		onClose: function( selectedDate ) {
 			$( "#to" ).datepicker( "option", "minDate", selectedDate );
 		}
 	});
 	$( "#to" ).datepicker({
 		defaultDate: "+1w",
 		changeMonth: true,
 		changeYear: true,
 		numberOfMonths:1,
 		onClose: function( selectedDate ) {
 			$( "#from" ).datepicker( "option", "maxDate", selectedDate );
 		}
 	});
 });
 </script>
